package com.example.entity;

/**
 * 将file文件中的数据转为pojo对象
 * 和 数据库实体
 * @author: yh
 * @date: 2022/9/26
 */
public class TestData {
    /**
     -- ----------------------------
     -- Table structure for TEST
     -- ----------------------------
     DROP TABLE IF EXISTS `TEST`;
     CREATE TABLE `TEST` (
     `id` bigint(10) NOT NULL COMMENT 'ID',
     `field1` varchar(10) NOT NULL COMMENT '字段一',
     `field2` varchar(10) NOT NULL COMMENT '字段二',
     `field3` varchar(10) NOT NULL COMMENT '字段三',
     PRIMARY KEY (`id`)
     ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

     -- ----------------------------
     -- Records of TEST
     -- ----------------------------
     BEGIN;
     INSERT INTO `TEST` VALUES (1, '11', '12', '13');
     INSERT INTO `TEST` VALUES (2, '21', '22', '23');
     INSERT INTO `TEST` VALUES (3, '31', '32', '33');
     INSERT INTO `TEST` VALUES (4, '41', '42', '43');
     INSERT INTO `TEST` VALUES (5, '51', '52', '53');
     INSERT INTO `TEST` VALUES (6, '61', '62', '63');
     COMMIT;
     */

    private int id;
    private String field1;
    private String field2;
    private String field3;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    @Override
    public String toString() {
        return "TestData{" +
                "id=" + id +
                ", field1='" + field1 + '\'' +
                ", field2='" + field2 + '\'' +
                ", field3='" + field3 + '\'' +
                '}';
    }
}